"""
赋值运算符
"""

def testAssignment():
    # 赋值运算符 = 
    age = 3
    print("age = {}".format(age))

    # 多个赋值
    age, name = 23, "Alice"
    print("age = {0}, name = {1}".format(age, name))

def testAugmentdOperator():
    # += 
    money = 12
    money += 12
    print("money is {}".format(money))

    # -=
    money -= 5
    print("money is {}".format(money))

    # *= 
    money *= 2
    print("money is {}".format(money))

    # /=
    money /= 2 
    print("money is {}".format(money))

    # %=
    day = 10
    day %= 3
    print("day is {}".format(day))

    # //=
    day //= 2
    print("day is {}".format(day))


testAssignment()
testAugmentdOperator()